package com.ulook.lookplanet.mapper;

import com.ulook.lookplanet.bean.TSysMsg;
import com.ulook.lookplanet.bean.TUserMsg;
import com.ulook.lookplanet.bean.VMsgUser;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.ArrayList;
import java.util.List;

/**
 * 描述：
 *
 * @author L1998
 * @date 2021/4/29
 */
@Mapper
@Repository
public interface NotificationMapper {

    /**
     * 查询系统消息
     */
    List<TSysMsg> querySysMsg(int userid);
    /**
     * 更新
     */
    int updateSysMsg(String uid);

    /**
     * 查询用户消息
     */
    List<VMsgUser> queryUserMsg(int touser);
    /**
     * 更新
     */
    int updateUserMsg(String uid);

    /**
     * 发送消息
     */
    void addUserMsg(TUserMsg userMsg);
}
